﻿using MangoCannon.Framework.Base;
using System;
using System.Reflection;
using System.Resources;
using System.Threading;

namespace UnitestForWin
{
    class Program
    {
        static void Main(string[] args)
        {
            string config = "{  AssemblyName:'UnitestForWin',  NameSpaceName:'UnitestForWin.App',ApplicationNames:['TestApp'],  ServerPort:2333}";
            MContext ctx = new MangoContext(config).getContext();
            ctx.luanchFramework();
            Console.WriteLine("Hello World!");
            new Thread(() =>{
                while (true)
                {
                    if (Console.ReadLine().Trim()=="Q")
                    {
                        ctx.shutdownFramework();
                        break;
                    }
                }
            }).Start();
        }
    }
}
